package com.hangxintong.common.base.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.hibernate.annotations.Where;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;

@Entity
@Data
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"})//解决NULL转JSON的问题
@Where(clause = "is_delete = 0")
public class LmOrder {
    @Id
    private String id;
    private String orderNum;
    private String goodsTitle;
    private String goodsImg;
    private String goodsId;
    private BigDecimal goodsMoney;
    private BigDecimal payMoney;
    private BigDecimal totalMoney;
    private BigDecimal realTotalMoney;
    private int orderScore;
    private int number;
    private Long companyId;
    private int goodsCate;
    private int isInvoice;
    private String isInvoiceId;
    private String companyName;
    private Long companyType;
    private int payWay;
    private String payWayNum;
    private String payRemark;
    private int status;
    private String remark;
    private Integer createId;
    private String createTime;
    private int isDelete = 0;
    private String payTime;
    private String updateTime;
    private String deleteTime;

    private Integer payCompanyId;
    private Integer payCompanyType;
    private int payType;

    //2020.7.3新增字段

    // 商品详情
    private String goodsInfo;
    private String text;

    private int isSx=0;  // 订单是否生效
}
